import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/api/boot/job/list',
    method: 'post',
    data: query
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/api/boot/job/add',
    method: 'post',
    data: data
  })
}

export function trigger(data) {
  return request({
    url: '/api/boot/job/trigger',
    method: 'post',
    data: data
  })
}

export function pause(data) {
  return request({
    url: '/api/boot/job/pause',
    method: 'post',
    data: data
  })
}

export function remove(data) {
  return request({
    url: '/api/boot/job/remove',
    method: 'post',
    data: data
  })
}

export function resume(data) {
  return request({
    url: '/api/boot/job/resume',
    method: 'post',
    data: data
  })
}

